package com.carleasoft.mps.adu.business.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.carleasoft.mps.adu.business.user.bean.entity.MAuthorityStaggerHolidays;
import com.carleasoft.mps.adu.business.user.bean.po.MAuthorityStaggerHolidaysPo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityDeptCountVo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityStaggerHolidaysVo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityUserDynamicVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.text.ParseException;
import java.util.List;

/**
 * 人员轮休Service接口
 * 
 * @author ruoyi
 * @date 2024-04-12
 */
public interface IMAuthorityStaggerHolidaysService extends IService<MAuthorityStaggerHolidays>
{
    /**
     * 查询人员轮休
     * 
     * @param id 人员轮休主键
     * @return 人员轮休
     */
    public MAuthorityStaggerHolidaysVo selectMAuthorityStaggerHolidaysById(Integer id);

    /**
     * 查询人员轮休列表
     * 
     * @param mAuthorityStaggerHolidaysPo 人员轮休
     * @return 人员轮休集合
     */
    public Page<MAuthorityStaggerHolidaysVo> selectMAuthorityStaggerHolidaysList(Page page, MAuthorityStaggerHolidaysPo mAuthorityStaggerHolidaysPo);

    /**
     * 新增人员轮休
     * 
     * @param mAuthorityStaggerHolidays 人员轮休
     * @return 结果
     */
    public boolean insertMAuthorityStaggerHolidays(MAuthorityStaggerHolidays mAuthorityStaggerHolidays);

    /**
     * 根据部门Code分钟求和总条数
     * @return
     */
    public List<MAuthorityDeptCountVo> selectMAuthorityDeptCountByDeptCode();

    /**
     * 修改人员轮休
     * 
     * @param mAuthorityStaggerHolidays 人员轮休
     * @return 结果
     */
    public boolean updateMAuthorityStaggerHolidays(MAuthorityStaggerHolidays mAuthorityStaggerHolidays);

    /**
     * 删除人员轮休信息
     * 
     * @param id 人员轮休主键
     * @return 结果
     */
    public boolean deleteMAuthorityStaggerHolidaysById(Integer id);

    /**
     * 导入人员轮休
     * @param file
     * @return
     */
    boolean userStaggerHolidaysExcel(MultipartFile file);

    /**
     * 导出人员轮休
     * @param startTime
     * @param response
     * @return
     */
    boolean export(HttpServletResponse response,String startTime) throws ParseException;
}
